package com.bjwl.web.contrlller.admin;

import com.bjwl.pojo.BranchStore;
import com.bjwl.pojo.Business;
import com.bjwl.pojo.Orders;
import com.bjwl.pojo.dto.BrDto;
import com.bjwl.pojo.vo.AdminOrdersQueryVo;
import com.bjwl.service.BranchStoreService;
import com.bjwl.service.OrdersService;
import com.bjwl.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author: dzx
 * @Date:Create：in 2020/4/15 23:12
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Controller
@RequestMapping("/admin/orders")
public class AdminOrdersController {

    @Autowired
    private OrdersService ordersService;


    /**
     * 总店查询派单
     * @param adminOrdersQueryVo
     * @return
     */
    @RequestMapping("/findAllOrders")
    public String findAllOrders(AdminOrdersQueryVo adminOrdersQueryVo, Model model){
        PageBean<Orders> pageBean = ordersService.findAllOrders(adminOrdersQueryVo);
        model.addAttribute("pageBean",pageBean);
        return "main_oa/works-list";
    }

}
